using SheLife.Domain.Common;

namespace SheLife.Domain.Entities;

public class HabitRecord : BaseEntity
{
    public int UserId { get; set; }
    public int HabitId { get; set; }
    public DateTime RecordDate { get; set; } = DateTime.UtcNow;
    public int Count { get; set; } = 1; // 完成次数
    public string? Note { get; set; } // 备注
    public Dictionary<string, string>? Metadata { get; set; } // 额外的元数据
    
    // 导航属性
    public virtual User User { get; set; } = null!;
    public virtual Habit Habit { get; set; } = null!;
}